﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/base/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>${systemOption.systemTitle}</title>
    <%@ include file="/base/head.jsp"%>
    <script type="text/javascript" charset="UTF-8">
	
  //分页查询
  function doQuery(){

  	var queryParams=$('#user').datagrid('options').queryParams;
  	queryParams.userNameSch=$('#userNameSch').val();
  	queryParams.nameSch=$('#nameSch').val();
  	queryParams.statusSch=$('#statusSch').val();
  	queryParams.deptIdSch=$('#deptIdSch').combotree('getValue');
  	queryParams.stationIdSch=$('#stationIdSch').combobox('getValue');
  	
  	//重置当前页数为1
  	resetDG('#user');

  } 


    </script>
  </head>
  
  <body>
    
<!-- 主窗口 -->  	 
    <table id="user" class="easyui-datagrid" data-options="fit:true,
    								rownumbers:true,
									singleSelect:true,
									striped:true,
									fitColumns:true,
									toolbar:'#tb',
									pagination:true,
									pageSize:20,
									pageList:[20,30,50,100],
									url:'${ctx}/json/listUserTxl.action'">
		<thead>
			<tr>
				
				
				<th data-options="field:'name',align:'left'" width="10%"><strong>姓名</strong></th>
				<th data-options="field:'deptName',align:'left'" width="20%"><strong>所属部门</strong></th>
				<th data-options="field:'stationName',align:'left'" width="15%"><strong>所属岗位</strong></th>
                                <th data-options="field:'sjhm',align:'center'" width="20%"><strong>手机号码 </strong></th>
				<th data-options="field:'bgsdh',align:'center'" width="15%"><strong>办公室电话 </strong></th>
				<th data-options="field:'dhm',align:'center'" width="10%"><strong>短号码 </strong></th>
				
			</tr>
		</thead>
		
	</table>
<!-- Datagrid工具栏 -->
<div id="tb">
	<table width="100%" cellpadding="0" cellspacing="0">

	<tr>
	   <td class="serchDiv">
			
			姓名：<input id="nameSch" class="easyui-validatebox" type="text">
			&nbsp;&nbsp;部门：<input id="deptIdSch" class="easyui-combotree"  data-options="url:'${ctx}/json/listDept3.action',value:'0'" style="width:205px"/>
			&nbsp;&nbsp;岗位：<input id="stationIdSch" class="easyui-combobox" data-options="
                        	                                                                url:'${ctx}/json/listStationTreeP.action',
                        	                                                                value:'0',
                        	                                                                valueField:'id',
                        	                                                                textField:'stationName',
                        	                                                                panelHeight:'200'
		                                                                                    " 
                        	                                                                style="width:205px" />
		    <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" 
			onclick="doQuery()">查询</a>
		</td>
	</tr>
	</table>
</div>
  
  </body>
</html>
